package edu.zut.hb.ambition.work.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WorkMapper;
import com.ruoyi.system.domain.Work;
import com.ruoyi.system.service.IWorkService;


@Service
public class WorkServiceImpl implements IWorkService
{
    @Autowired
    private WorkMapper workMapper;

    @Override
    public Work selectWorkByPaiid(Long paiid)
    {
        return workMapper.selectWorkByPaiid(paiid);
    }

    @Override
    public List<Work> selectWorkList(Work work)
    {
        return workMapper.selectWorkList(work);
    }

    @Override
    public int insertWork(Work work)
    {
        return workMapper.insertWork(work);
    }

    @Override
    public int updateWork(Work work)
    {
        return workMapper.updateWork(work);
    }


    @Override
    public int deleteWorkByPaiids(Long[] paiids)
    {
        return workMapper.deleteWorkByPaiids(paiids);
    }

    @Override
    public int deleteWorkByPaiid(Long paiid)
    {
        return workMapper.deleteWorkByPaiid(paiid);
    }
}

